
'use strict';
const express=require('express');
const path=require('path');
const noticeRouter=express.Router();

const noticeCtrl=require(path.join(__dirname,"../controllers/noticeCtroller.js"));


noticeRouter.get('/notice_add',noticeCtrl.noticeAdd);

noticeRouter.post('/notice_add',noticeCtrl.noticeAddData);


noticeRouter.get('/notice_list',noticeCtrl.noticeList);

noticeRouter.get('/notice_edite/:notice_id',noticeCtrl.noticeEdite);

noticeRouter.post('/notice_edite/:notice_id',noticeCtrl.noticeEditeData);

noticeRouter.get('/notice_delete/:notice_id',noticeCtrl.noticeDelete);


module.exports=noticeRouter;